﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace PressureDiary.ViewModels
{
    public class MonthViewModel : INotifyPropertyChanged
    {

        private string _key;

        public string Key
        {
            get { return _key; }
            set 
            {
                if (value != _key)
                {
                    _key = value;
                    NotifyPropertyChanged("Key");
                }
            }
        }

        private string _monthYear;

        public string MonthYear
        {
            get { return _monthYear; }
            set 
            {
                if (value != _monthYear)
                {
                    _monthYear = value;
                    NotifyPropertyChanged("MonthYear");
                }
            }
        }

        private int _count;

        public int Count
        {
            get { return _count; }
            set 
            {
                if (value != _count)
                {
                    _count = value;
                    NotifyPropertyChanged("Count");
                }
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
